package org.me.marble;

/**
 *
 * @author tungi
 */

public class MyColor{
    private float[] _ambient={1.0f,1.0f,1.0f,1.0f};
    private float[] _diffuse={1.0f,1.0f,1.0f,1.0f};
    private float[] _specular={1.0f,1.0f,1.0f,1.0f};
    private float[] _emission={1.0f,1.0f,1.0f,1.0f};
    private float _shininess=0.0f;

    public MyColor(){

    }

    public void setAmbient(float[] ambient){
        System.arraycopy(ambient,0,_ambient,0,4);
    }

    public void setDiffuse(float[] diffuse){
        System.arraycopy(diffuse,0,_diffuse,0,4);
    }

    public void setSpecular(float[] specular){
        System.arraycopy(specular,0,_specular,0,4);
    }

    public void setEmission(float[] emission){
        System.arraycopy(emission,0,_emission,0,4);
    }

    public void setShininess(float shininess){
        this._shininess=shininess;
    }

    public float[] getAmbient(){
        return _ambient;
    }

    public float[] getDiffuse(){
        return _diffuse;
    }

    public float[] getEmission(){
        return _emission;
    }

    public float[] getSpecular(){
        return _specular;
    }

    public float getShininess(){
        return _shininess;
    }
}
